// ---------------------------------------------------------------------
//
// -- 游戏教学
// -- author £
//
// ---------------------------------------------------------------------

cc.Class({
    extends: cc.Component,

    properties: {
        fingerLayer: cc.Node,
        fingerAn: cc.Animation
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        // this.node.on('touchstart', this.touchStop, this);
    },

    start () {

    },

    resize: function (fingerY) {
        this.fingerLayer.y = fingerY;
    },

    play: function () {
        this.node.active = true;
        this.fingerAn.play();
    },

    stop: function () {
        this.node.active = false;
        this.fingerAn.stop();
    },

    touchStop: function () {
        this.stop();
        // this.node.off('touchstart', this.stop, this);
    }

    // update (dt) {},
});
